package main.Q2401_2500;

import java.util.HashSet;
import java.util.Set;

public class Q2441_2450 {
    public static void main(String[] args) {
        System.out.println("Question2441：");
        System.out.println("Question2442：反转之后不同整数的数目");
        System.out.println("Question2443：");
        System.out.println("Question2444：");
        System.out.println("Question2445：");
        System.out.println("Question2446：");
        System.out.println("Question2447：");
        System.out.println("Question2448：");
        System.out.println("Question2449：");
        System.out.println("Question2450：");
    }
}

class Question2442 {
    public int countDistinctIntegers(int[] nums) {
        Set<Integer> set = new HashSet<>();
        for (int num : nums) {
            set.add(num);
            StringBuffer str = new StringBuffer(String.valueOf(num));
            String s = str.reverse().toString();
            Integer reverseNum = Integer.valueOf(s);
            set.add(reverseNum);
        }
        return set.size();
    }
}